<!-- Dom模板 -->
<template>
    
  <div class="studentScreen">
        <!-- Dom内容 -->
    <slot name="tit"></slot>

    <el-form :inline="true" class="demo-form-inline">
      <el-form-item label="注册时间">
                   
        <el-date-picker
          v-model="value1"
          type="datetimerange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          align="right"
        >
        </el-date-picker> </el-form-item
      >   
      <slot></slot>
      <el-form-item>
        <el-input v-model="input" placeholder="请输入用户id/用户名称"></el-input> 
      </el-form-item>
                         
      <el-form-item class="header_rig_btn">
                   
        <el-button
          type="primary"
          style="background: #38a28a; border: 1px solid #38a28a"
          @click="screen()"
          >筛选</el-button
        >
                 
      </el-form-item>
             
    </el-form>

      
  </div>
</template>

<script>
// import a from './a'; // 引入组件
export default {
  // props: ["student"],
  name: "",
  data() {
    return {
      msg: "测试",
      value1: ["", ""],
      value2: "",
      input: "",
    };
  }, // 生命周期 - 创建完成（访问当前this实例）
  created() {}, // 生命周期 - 挂载完成（访问DOM元素）
  mounted() {}, // Vue方法定义
  methods: {
    screen() {
      this.$emit("screens",this.input)
      this.$emit("filtrate",this.input)
    },
  },
};
</script>

<style scoped>
/* @import url(''); 引入css类 */
.studentScreen {
  width: 100%;
  height: 120px;
  background: #fff;
  margin-bottom: 20px;
  box-sizing: border-box;
  padding: 0 30px;
  /* border: 1px solid; */
}
.studentScreen > p {
  padding: 10px 0;
  width: 100%;
  font-size: 14px;
  box-sizing: border-box;
}
.header_rig_btn {
  float: right;
}
</style>